using System;

namespace Outcoding.GraphGenerator.Entities {
    public class XlMarkerStyleHelper {

        public static XlMarkerStyle ConvertFromString(string xlMarkerStyle) {
            XlMarkerStyle value = XlMarkerStyle.xlMarkerStyleUnknown;
            switch(xlMarkerStyle){
                case "xlMarkerStyleAutomatic":
                    value = XlMarkerStyle.xlMarkerStyleAutomatic;
                    break;
                case "xlMarkerStyleCircle":
                    value = XlMarkerStyle.xlMarkerStyleCircle;
                    break;
                case "xlMarkerStyleDash":
                    value = XlMarkerStyle.xlMarkerStyleDash;
                    break;
                case "xlMarkerStyleDiamond":
                    value = XlMarkerStyle.xlMarkerStyleDiamond;
                    break;
                case "xlMarkerStyleDot":
                    value = XlMarkerStyle.xlMarkerStyleDot;
                    break;
                case "xlMarkerStyleNone":
                    value = XlMarkerStyle.xlMarkerStyleNone;
                    break;
                case "xlMarkerStylePicture":
                    value = XlMarkerStyle.xlMarkerStylePicture;
                    break;
                case "xlMarkerStylePlus":
                    value = XlMarkerStyle.xlMarkerStylePlus;
                    break;
                case "xlMarkerStyleSquare":
                    value = XlMarkerStyle.xlMarkerStyleSquare;
                    break;
                case "xlMarkerStyleStar":
                    value = XlMarkerStyle.xlMarkerStyleStar;
                    break;
                case "xlMarkerStyleTriangle":
                    value = XlMarkerStyle.xlMarkerStyleTriangle;
                    break;
                case "xlMarkerStyleX":
                    value = XlMarkerStyle.xlMarkerStyleX;
                    break;
            }
            return value;
        }
    }
}
